@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

// scrollbar
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

// 侧边栏菜单背景色为白色
.el-menu,
.el-menu--vertical {
  background: #fff !important;
}

.el-menu-item,
.el-submenu__title {
  background: #fff !important;
  color: #333;
}

.el-menu-item.is-active {
  background: #f0f2f5 !important;
  color: #409EFF !important;
} 
.sidebar,
.side-bar {
  background: #fff !important;
}
// 侧边栏整体背景色为白色
.sidebar-container,
.el-aside,
.el-menu,
.el-menu--vertical,
.el-submenu__title,
.el-menu-item {
  background: #fff !important;
  color: #333 !important;
  border: none !important;
}

// 选中项和展开项也为白色
.el-menu-item.is-active,
.el-menu-item:focus,
.el-menu-item:hover,
.el-submenu.is-opened > .el-submenu__title {
  background: #fff !important;
  color: #409EFF !important;
}

// 禁用项也为白色
.el-menu-item.is-disabled {
  background: #fff !important;
  color: #bbb !important;
}

// Sidebar
#app .sidebar-container {
  .el-menu {
    // Ensure submenu title text color is consistent
    .el-submenu__title {
      color: #303133 !important; // Set a dark color for text
    }

    // Override background color for expanded submenus and items
    .el-submenu.is-active > .el-submenu__title,
    .el-submenu__title:hover,
    .el-menu-item,
    .el-menu-item:focus,
    .el-menu-item:hover {
      background-color: #fff !important; // Set background to white
    }

    .el-submenu__title,
    .el-menu-item {
       // Color for text if needed, adjust as per your dark mode text color
       // color: #333 !important; 
    }

     // Adjust background for nested menu items if different
     .el-menu .el-menu-item {
        background-color: #fff !important;
        // color: #333 !important;
     }

  }
}